package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"mybeego/controllers"
)

func init() {
    beego.Router("/", &controllers.MainController{})
    // 路由注册，正则
    beego.Router("/sayHello/?:name",&controllers.MainController{},"get:SayHello")
    beego.Router("/test",&controllers.MainController{},"get:Test")
/*	beego.Router("/admin", &admin.UserController{})
	beego.Router("/admin/index", &admin.ArticleController{})
	beego.Router("/admin/addpkg", &admin.AddController{})*/
}
